<%@page import="cn.yunhe.entity.News"%>
<%@page import="cn.yunhe.biz.NewsBiz"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'newsDetail.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <%
    	request.setCharacterEncoding("UTF-8");
    	response.setCharacterEncoding("UTF-8");
    	
    	String nId=request.getParameter("newsId");
    	int newsId=Integer.parseInt(nId);
    	
    	NewsBiz newsBiz=new NewsBiz();
    	News news=newsBiz.getNewsByNewsId(newsId);
    	
    %>
    <h2><%=news.getNewsTitle() %></h2>
    <p><%=news.getAdmin().getAdminId() %>写于<%=news.getNewsPtime() %></p>
    <p><img src="admin/upfiles/<%=news.getNewsPic()%>"/></p>
    <p><%=news.getNewsContent() %></p>
  </body>
</html>
